﻿// 1.1.3.06. Write an expression that calculates rectangle’s area by given width and height.

using System;

class RectangularAreaAndPerimeter
{
    static void Main()
    {
        Console.Write("Please enter a width: ");
        int a = int.Parse(Console.ReadLine());
        Console.Write("Please enter a height: ");
        int b = int.Parse(Console.ReadLine());
        Console.WriteLine("Rectangular with a={0} and b={1} has P={2} and S={3}", a, b, a*2+b*2, a*b);
    }
}